function foo(this: { name: string }) {
  this.name = 'Patrick';
}

let o = { name: 'jack' }
foo.call(o)
console.log(o);

